package com.hfxt.service;
import com.hfxt.dto.MaintainOrderDto;
import  com.hfxt.po.MaintainOrder;
import java.util.Date;
import java.util.List;
import java.util.Map;
import com.hfxt.dto.Page;
/**
* Created by shang-pc on 2015/11/7.
*/
public interface MaintainOrderService {

    public MaintainOrder getMaintainOrderById(Long id);

    public List<MaintainOrder>	getMaintainOrderListByMap(Map<String,Object> param);

    public Integer getMaintainOrderCountByMap(Map<String,Object> param);

    public Integer qdtxAddMaintainOrder(MaintainOrder maintainOrder);

    public Integer qdtxModifyMaintainOrder(MaintainOrder maintainOrder);

    public Integer qdtxDeleteMaintainOrderById(Long id);

    public Integer qdtxBatchDeleteMaintainOrder(String ids);

    public Page<MaintainOrder> queryMaintainOrderPageByMap(Map<String,Object> param,Integer pageNo,Integer pageSize);

    /**
     * 查询维修订单详情
     *
     * @param orderNo
     * @return
     */
    public MaintainOrderDto getByNo(String orderNo);

    /**
     * 结束交易
     *
     * @param aliTradeNo  支付宝订单号
     * @param payNo       商户支付订单号
     * @param totalAmount
     * @return
     */
    int finishPay(String aliTradeNo, String payNo, String totalAmount);

}
